package com.example.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CommandLineRunnerTest implements CommandLineRunner{
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private MyBean myBean;

    @Override
    public void run(String... args) throws Exception {
        logger.debug("{}", myBean.getSecret());
    }
}
